package com.example.demo.v2;
//修改时直接在main里改变，所以属于一种ioc思想
//依赖注入模式
public class Main {
    public static void main(String[] args) {
        Tire tire = new Tire(17);
        Bottom bottom = new Bottom(tire);
        Framework framework = new Framework(bottom);

        Car car = new Car(framework);
        car.run();
    }
}
